package aliasfor;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.core.annotation.AnnotationAttributes;

@Configuration
public class ExampleAliasFor {

    public static void main(String[] args) {
        AnnotationAttributes aa = AnnotatedElementUtils
                .getMergedAnnotationAttributes(MyObject1.class, AccessRole.class);
        System.out.println("Attributes of AccessRole used on MyObject1: " + aa);

        AnnotationAttributes bb = AnnotatedElementUtils
                .getMergedAnnotationAttributes(Model.class, Composite.class);
        System.out.println("Attributes of Composite used on Model: " + bb);


    }




}
